
{category module=quan show=1 pid=0 return=t}

{if $t.show == 1}

{category module=quan pid=$t.id show=1 return=t2}
{if $t2.show == 1}
{module module=quan simi=0 catid=$t2.id zt=1 daquan=1 fstatus=1 order=displayorder_asc page=1 pagesize=50}
<div class="d-kuan d-buhuanhang d-jingguo  d-beijing-hei-f3 d-xia-20  d-yuanjiao-10">
	<a href="{$t.url}" class="d-kuan ">
		<div class="col-md-12 col-xs-12 d-waigao-10 d-xia-5 d-div-zou  d-buhuanhang">
			<div class=" d-yuanjiao-10">
				<img class="d-yuanjiao-30" src="{dr_thumb($t.thumb)}" height="50" width="50"/>
			</div>
			<div class="d-zuo-10">
				<div class="d-jiacu d-wenzi-16">{dr_keyword_highlight($t.title, $keyword)}</div>
				<div class="d-wenzi-14">
					帖子:
					{count action=table table=1_quan_form_son cid=$t.id return=tiezi}
					{$tiezi_count}
				</div>
			</div>
		</div>
	</a>
	<div class="d-kuan-100 d-shang-20 d-xia-20 d-you-10">
	    {if $t.price > 0}
	    {$fufei = \Phpcmf\Service::M()->db->table('1_quan_buy')->where('cid', $tid)->where('uid', $member.uid)->get()->getRowArray();}
	        {if $fufei}
	    	<a class="tag_list_joins" id="tag_joins_{$t.id}" data-id="{$t.id}">
	    		{dr_quan_tag_joinsid($t.id,1)} 
	    	</a>
	    	{else}
	    	<a class="" href="/index.php?s=quan&c=buy&m=index&fid=0&id={$t.id}">
	    		<div class="d-neikuang-5-10  d-wenzi-juzhong d-shang-10 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">{$t.price} / 元</div>
	    	</a>
	    	{/if}
	        
	    {else}
	    <a class="tag_list_joins" id="tag_joins_{$t.id}" data-id="{$t.id}">
	    	{dr_quan_tag_joinsid($t.id,1)} 
	    </a>
	    {/if}
	</div>
</div>

{/module}
{/if}
{/category}
	{/if}
{/category}